#include <stdio.h>
#include <string.h>

struct Key {
    char chars[6];
    int len;
};

struct Key keys[] = {
    {"0 ", 2},
    {"1,.?!", 5},
    {"2ABC", 4},
    {"3DEF", 4},
    {"4GHI", 4},
    {"5JKL", 4},
    {"6MNO", 4},
    {"7PQRS", 5},
    {"8TUV", 4},
    {"9WXYZ", 5}
};

int main() {
    char input[501];
    fgets(input, 501, stdin);
    input[strcspn(input, "\n")] = '\0';

    char *token = strtok(input, " ");
    while (token != NULL) {
        int key = token[0] - '0';
        int times = strlen(token) - 1;
        struct Key k = keys[key];
        printf("%c", k.chars[times % k.len]);
        token = strtok(NULL, " ");
    }
    printf("\n");

    return 0;
}